package com.openingedu.mba.persist;

import com.j256.ormlite.dao.ForeignCollection;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.field.ForeignCollectionField;
import com.j256.ormlite.table.DatabaseTable;

@DatabaseTable(tableName = "oc_paper")
public class DbPaper {

	@DatabaseField(generatedId = true)
	private Integer id;
	
	@DatabaseField
	private Integer paperID;
	@DatabaseField
	private String paperTitle;
	@DatabaseField
	private String paperDesc;
	@DatabaseField
	private String paperSerial;
	@DatabaseField
	private Integer paperType;
	@DatabaseField
	private String paperTypeTitle;
	@DatabaseField
	private Double paperPrice;
	@DatabaseField
	private Integer paperVersion;
	@DatabaseField
	private Integer paperStatus;
	@DatabaseField
	private boolean paid;
	
	@ForeignCollectionField(eager = true)
	private ForeignCollection<DbPaperQuestion> paperQuestions;
	
	public DbPaper() {

	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getPaperTitle() {
		return paperTitle;
	}

	public void setPaperTitle(String paperTitle) {
		this.paperTitle = paperTitle;
	}

	public String getPaperDesc() {
		return paperDesc;
	}

	public void setPaperDesc(String paperDesc) {
		this.paperDesc = paperDesc;
	}

	public String getPaperSerial() {
		return paperSerial;
	}

	public void setPaperSerial(String paperSerial) {
		this.paperSerial = paperSerial;
	}

	public Integer getPaperType() {
		return paperType;
	}

	public void setPaperType(Integer paperType) {
		this.paperType = paperType;
	}

	public Integer getPaperID() {
		return paperID;
	}

	public void setPaperID(Integer paperID) {
		this.paperID = paperID;
	}

	public String getPaperTypeTitle() {
		return paperTypeTitle;
	}

	public void setPaperTypeTitle(String paperTypeTitle) {
		this.paperTypeTitle = paperTypeTitle;
	}

	public Double getPaperPrice() {
		return paperPrice;
	}

	public void setPaperPrice(Double paperPrice) {
		this.paperPrice = paperPrice;
	}

	public Integer getPaperVersion() {
		return paperVersion;
	}

	public void setPaperVersion(Integer paperVersion) {
		this.paperVersion = paperVersion;
	}

	public Integer getPaperStatus() {
		return paperStatus;
	}

	public void setPaperStatus(Integer paperStatus) {
		this.paperStatus = paperStatus;
	}

	public boolean isPaid() {
		return paid;
	}

	public void setPaid(boolean paid) {
		this.paid = paid;
	}

	public ForeignCollection<DbPaperQuestion> getPaperQuestions() {
		return paperQuestions;
	}

	public void setPaperQuestions(ForeignCollection<DbPaperQuestion> paperQuestions) {
		this.paperQuestions = paperQuestions;
	}

}
